package com.flyco.modules.stm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDate;
import java.util.Date;

/**
 * @Description: 渠道产品表
 * @Author: flyco
 * @Date:   2023-06-21
 * @Version: V1.0
 */
@Data
@TableName("stm_jd_channel_price")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="stm_jd_channel_product对象", description="金蝶同步的渠道产品表")
@Deprecated
public class StmJdChannelPrice {

	/**id*/
	private String storeId;
	/**渠道Id*/
	@Excel(name = "渠道Id", width = 15)
    @ApiModelProperty(value = "渠道Id")
	private String channelId;

	@ApiModelProperty(value = "物料编码")
	private String skuCode;

	@ApiModelProperty(value = "有效开始时间")
	private LocalDate effectiveDate;

	/**渠道价格*/
	@Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "渠道价格")
	private java.math.BigDecimal price;
	/**商品名称*/
	@Excel(name = "商品名称", width = 15)
    @ApiModelProperty(value = "状态")
	private String status;

	@ApiModelProperty(value = "唯一码，")
	private String uniCode;

	public void setEffectiveDate(String effectiveDate){
		 this.effectiveDate=LocalDate.parse(effectiveDate.substring(0,10));
	}
}
